#ifndef FLOATTOOL_H
#define FLOATTOOL_H

#include <QWidget>

namespace Ui {
class FloatTool;
}

typedef union{
    float src;
    unsigned char dec[4];
}FloatMem_u;

class FloatTool : public QWidget
{
    Q_OBJECT

public:
    explicit FloatTool(QWidget *parent = 0);
    ~FloatTool();

private slots:
    void on_comboBox_currentIndexChanged(int index);

    void on_lineEdit_editingFinished();

    void on_pushButton_released();

    void on_lineEdit_textChanged(const QString &arg1);

private:
    Ui::FloatTool *ui;
    bool m_setEndian = true;
    FloatMem_u m_setValue = {0};
};

#endif // FLOATTOOL_H
